<?php
/**
 * Created by PhpStorm.
 * User: tjjs
 * Date: 17-8-10
 * Time: 上午11:05
 */

namespace ActionsHttp;

use Utils\Socket_to_restaurant;

class RestaurantPrint extends BaseActionHttp
{
    public function doAction() {
        parent::doAction();
        // 订单id
        $order_form_id = $this->data[ORDER_FORM_ID];

        // socket推送
        $data = array(
            "ActionType" => "event_restaurant_print_hand",
            "DataDictionary" => array(
                "ORDER_FORM_ID"=>$order_form_id
            )
        );
        new Socket_to_restaurant(json_encode($data));

        $this->ResponseDataToCurrentClient();
    }
}